# ---------- ---------- ---------- ---------- ---------- ----------
#   Example Makefile
#
#   NOTE: HardMake will probably reside in a subdirectory, rather
#         than a parent, as in the example below.
#
# ---------- ---------- ---------- ---------- ---------- ----------

Ingredients=-i 'Foo Bar Glux'
UserAt=$(if $(u),-u $(u),)
Build=$(if $(b),-b $(b),-b stable)
PathToHardMake=$(if $(p),-p $(p),-p ../)
ConfigFile=$(if $(f),-p $(f),-f test.yaml)
HardMake=../hardmake.sh
RemoteName=$(if $(r),-r $(r),)
RemotePath=$(if $(R),-R $(R),)

target: help

.PHONY: help
help:
	@echo Example Makefile
	@$(HardMake) -h

# ---------- ---------- ---------- ---------- ---------- ----------
#NOTE: The remaining recipes follow:
# ---------- ---------- ---------- ---------- ---------- ----------

.PHONY: test
test:
	@$(HardMake) $(PathToHardMake) $(ConfigFile) $(Ingredients) $(Build) $(UserAt)
	@echo done

.PHONY: remotes
remotes:
	@$(HardMake) -a $(PathToHardMake) $(ConfigFile) $(Ingredients) $(Build) $(UserAt) $(RemoteName) $(RemotePath)
	@echo done

.PHONY: deps
deps:
	@$(HardMake) -d $(PathToHardMake) $(ConfigFile) $(Ingredients) $(Build) $(UserAt)
	@echo done

.PHONY: checkout
checkout:
	@$(HardMake) -c $(PathToHardMake) $(ConfigFile) $(Ingredients) $(Build) $(UserAt)
	@echo done

.PHONY: clean
clean:
	@rm -rf lib/
